# header-only library
kmpkg_from_gitee(
    OUT_SOURCE_PATH SOURCE_PATH
    REPO kumo-pub/uwebsockets
    REF "v${VERSION}"
    SHA512 a23f3435d10a53dba00e8b596e71c8e2f5e095da7fb67f39ca607d40917800473e614f83e498afb5bc39af4cbed181a9432b1e1ae5169a8912fc581b9574e0f8
    HEAD_REF master
)

file(COPY "${SOURCE_PATH}/src"  DESTINATION "${CURRENT_PACKAGES_DIR}/include")
file(RENAME "${CURRENT_PACKAGES_DIR}/include/src" "${CURRENT_PACKAGES_DIR}/include/uwebsockets")

kmpkg_install_copyright(FILE_LIST "${SOURCE_PATH}/LICENSE")
